import request from '@/utils/request';

// 支付策略列表
export const channelList = params => request({
    url: '/business/channel/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 支付策略新增
export const channelAdd = params => request({
    url: '/business/channel/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 支付策略更新
export const channelUpdate = params => request({
    url: '/business/channel/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 支付策略删除
export const channelDel = params => request({
    url: '/business/channel/del',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 支付策略导出
export const channelExport = params => request({
    url: '/business/channel/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 支付策略导入
export const channelImp = params => request({
    url: '/business/channel/imp',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 支付策略状态更新
export const channelStatus = params => request({
    url: '/business/channel/status/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 支付策略详情
export const channelDetail = params => request({
    url: '/business/channel/get',
    method: 'GET',
    params
});
